<div id="maincontent">
	<div id="maincontent_inner">
		<div id="sidebar">
			<div class="menu single">
				<ul>
					<li><a href="#">注册用户管理</a>
						<ul>
							<li class="current"><a href="<?php echo site_url("c=user&m=index"); ?>">注册用户列表</a></li>
							<li><a href="<?php echo site_url("c=user&m=add"); ?>">添加用户</a></li>
						</ul>
					</li>
				</ul>
			</div>
		</div>
		<div id="content">
			<div class="title">注册用户列表</div>
			<div class="infoarea">
				<form name="titleSearchForm" action="<?php echo site_url("c=user&m=index"); ?>" method="post">
				<div class="box">
				用户名：<input type="text" size="16" name="username" value="<?php echo $params['username']; ?>"/> 
				注册邮箱：<input type="text" size="16" name="email" value="<?php echo $params['email']; ?>"/> 
				<input type="submit" class="btn" value="查询"/>
				<div style="float:right">
				<input type="button" class="btn" value="添加用户" onclick="gotoPage('<?php echo site_url("c=user&m=add"); ?>');" />
				</div>
				</div>

				<table border="0" cellspacing="0" cellpadding="0" width="100%" class="stylized">
					<tr>
						<th>用户名</th>
						<th>注册邮箱</th>
						<th>注册时间</th>
						<th>注册来源</th>
						<th>操作</th>
					</tr>
					<?php 
					if($count)
					{
					foreach($list as $user){ ?>
					<tr>
						<td><?php echo $user['username']; ?></td>
						<td><?php echo $user['email']; ?></td>
						<td><?php echo unix_to_human($user['regdate']); ?></td>
						<td><?php echo $user['regfrom']; ?></td>
						<td><a href="<?php echo site_url("c=user_car&m=index&username=$user[username]"); ?>">查看用户绑定车辆</a> | <a href="<?php echo site_url("c=user&m=edit&uid=$user[uid]"); ?>">编辑</a> | <a href="<?php echo site_url("c=user&m=delete&uid=$user[uid]"); ?>" onclick="return confirm('确认要删除当前记录吗？')">删除</a></td>
					</tr>
					 <?php }
					}
					else
					{?>

					<tr>
						<td colspan="5"> 无记录 </td>
					</tr>
					 <?php  
					}
					 ?>
 
				</table>
				<div id="pager" class="pagebar">
					
					 <?php  
					 echo $pagelink;
					 ?>
					
				</div>
				</form>
			</div>
		</div>
	</div>
</div>
